//
//  CCViewController.m
//  nsj_iOS
//
//  Created by apple on 2017/1/11.
//  Copyright © 2017年 GCZ. All rights reserved.
//

#import "CCViewController.h"

@interface CCViewController ()

@end

@implementation CCViewController

- (void)viewDidLoad {
    [super viewDidLoad];
  
    NSString *result = @"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"> <HTML> <HEAD> <meta http-equiv=Content-Type content=\"textml;charset=gb2312\"> <TITLE> title </TITLE> </HEAD> <BODY bgcolor='yellow' style='color:red'> <h1>gagag </h1> <p > 顾晨哲</p> <b>gagaaf</b><br /> adf<img src='https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-zhidao.gif'><br />adfafa: <a href='www.baidu.com'>打发</a> <a href='www.qq.com'>哈哈哈</a><br /> <a href='#'><button>button<tton></a> <table border=\"1\" width=\"1000px\"><tr><td>row 1, cell 1</td><td>row 1, cell 2</td></tr><tr><td>row 2, cell 1</td><td>row 2, cell 2</td></tr></table>></BODY> </HTML>";

    
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:webView];
    
    [webView loadHTMLString:result baseURL:nil];
        // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
